home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
SETUP
/
US
/
CBUILDER
/
DATA.Z
/
CONTROLS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-13
|
49KB
|
1,139 lines
//----------------------------------------------------------------------------
// Controls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: Controls.pas
//----------------------------------------------------------------------------
#ifndef ControlsHPP
#define ControlsHPP
//----------------------------------------------------------------------------
#include <Imm.hpp>
#include <CommCtrl.hpp>
#include <Menus.hpp>
#include <Graphics.hpp>
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <Windows.hpp>
#include <Messages.hpp>
#include <System.hpp>
#include <ctl3d.h>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Controls
{
//-- type declarations -------------------------------------------------------
enum TCursor {crMin=-0x7FFF-1, crMax=0x7FFF};
typedef Messages::TWMNoParams TCMActivate;
typedef Messages::TWMNoParams TCMDeactivate;
typedef Messages::TWMNoParams TCMGotFocus;
typedef Messages::TWMNoParams TCMLostFocus;
typedef Messages::TWMKey TCMDialogKey;
typedef Messages::TWMKey TCMDialogChar;
typedef Messages::TWMNCHitTest TCMHitTest;
typedef Messages::TWMNoParams TCMEnter;
typedef Messages::TWMNoParams TCMExit;
typedef Messages::TWMMouse TCMDesignHitTest;
typedef Messages::TWMKey TCMWantSpecialKey;
class __declspec(delphiclass) TControl;
class __declspec(delphiclass) TWinControl;
typedef void __fastcall (__closure *TWndMethod)(Messages::TMessage &Message);
enum Controls_7 { csAcceptsControls, csCaptureMouse, csDesignInteractive, csClickEvents, csFramed, csSetCaption,
csOpaque, csDoubleClicks, csFixedWidth, csFixedHeight, csNoDesignVisible, csReplicatable, csNoStdEvents,
csDisplayDragImage };
typedef Set<Controls_7, csAcceptsControls, csDisplayDragImage> TControlStyle;
enum Controls_6 { csLButtonDown, csClicked, csPalette, csReadingState, csAlignmentNeeded, csFocusing,
csCreating, csPaintCopy };
typedef Set<Controls_6, csLButtonDown, csPaintCopy> TControlState;
enum TAlign { alNone, alTop, alBottom, alLeft, alRight, alClient };
enum TDragMode { dmManual, dmAutomatic };
enum Controls_8 { sfLeft, sfTop, sfWidth, sfHeight, sfFont };
typedef Set<Controls_8, sfLeft, sfFont> TScalingFlags;
enum TMouseButton { mbLeft, mbRight, mbMiddle };
typedef void __fastcall (__closure *TMouseEvent)(System::TObject* Sender, TMouseButton Button, Classes::TShiftState
Shift, int X, int Y);
typedef void __fastcall (__closure *TMouseMoveEvent)(System::TObject* Sender, Classes::TShiftState Shift
, int X, int Y);
typedef void __fastcall (__closure *TDragDropEvent)(System::TObject* Sender, System::TObject* Source
, int X, int Y);
enum TDragState { dsDragEnter, dsDragLeave, dsDragMove };
typedef void __fastcall (__closure *TDragOverEvent)(System::TObject* Sender, System::TObject* Source
, int X, int Y, TDragState State, bool &Accept);
class __declspec(delphiclass) TDragObject;
typedef void __fastcall (__closure *TStartDragEvent)(System::TObject* Sender, TDragObject* &DragObject
);
typedef void __fastcall (__closure *TEndDragEvent)(System::TObject* Sender, System::TObject* Target,
int X, int Y);
struct TCMDrag;
typedef System::AnsiString TCaption;
class __declspec(delphiclass) TCustomImageList;
class __declspec(pascalimplementation) TControl : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
TWinControl* FParent;
TWndMethod FWindowProc;
int FLeft;
int FTop;
int FWidth;
int FHeight;
TControlStyle FControlStyle;
TControlState FControlState;
bool FVisible;
bool FEnabled;
bool FParentFont;
bool FParentColor;
TAlign FAlign;
TDragMode FDragMode;
bool FIsControl;
char *FText;
Graphics::TFont* FFont;
Graphics::TColor FColor;
TCursor FCursor;
TCursor FDragCursor;
Menus::TPopupMenu* FPopupMenu;
System::AnsiString FHint;
int FFontHeight;
TScalingFlags FScalingFlags;
bool FShowHint;
bool FParentShowHint;
TMouseEvent FOnMouseDown;
TMouseMoveEvent FOnMouseMove;
TMouseEvent FOnMouseUp;
TDragDropEvent FOnDragDrop;
TDragOverEvent FOnDragOver;
TStartDragEvent FOnStartDrag;
TEndDragEvent FOnEndDrag;
Classes::TNotifyEvent FOnClick;
Classes::TNotifyEvent FOnDblClick;
void __fastcall CheckMenuPopup(const Windows::TSmallPoint Pos);
void __fastcall DoDragMsg(TCMDrag &DragMsg);
void __fastcall DoMouseDown(Messages::TWMMouse &Message, TMouseButton Button, Classes::TShiftState
Shift);
void __fastcall DoMouseUp(Messages::TWMMouse &Message, TMouseButton Button);
void __fastcall FontChanged(System::TObject* Sender);
Windows::TRect __fastcall GetBoundsRect(void);
int __fastcall GetClientHeight(void);
int __fastcall GetClientWidth(void);
bool __fastcall GetMouseCapture(void);
System::AnsiString __fastcall GetText(void);
void __fastcall InvalidateControl(bool IsVisible, bool IsOpaque);
bool __fastcall IsColorStored(void);
bool __fastcall IsFontStored(void);
bool __fastcall IsShowHintStored(void);
void __fastcall ReadIsControl(Classes::TReader* Reader);
void __fastcall RequestAlign(void);
void __fastcall SetAlign(TAlign Value);
void __fastcall SetBoundsRect(const Windows::TRect &Rect);
void __fastcall SetClientHeight(int Value);
void __fastcall SetClientSize(const POINT &Value);
void __fastcall SetClientWidth(int Value);
void __fastcall SetColor(Graphics::TColor Value);
void __fastcall SetCursor(TCursor Value);
void __fastcall SetEnabled(bool Value);
void __fastcall SetFont(Graphics::TFont* Value);
void __fastcall SetHeight(int Value);
void __fastcall SetLeft(int Value);
void __fastcall SetMouseCapture(bool Value);
void __fastcall SetParentColor(bool Value);
void __fastcall SetParentFont(bool Value);
void __fastcall SetShowHint(bool Value);
void __fastcall SetParentShowHint(bool Value);
void __fastcall SetPopupMenu(Menus::TPopupMenu* Value);
void __fastcall SetText(const System::AnsiString Value);
void __fastcall SetTop(int Value);
void __fastcall SetVisible(bool Value);
void __fastcall SetWidth(int Value);
void __fastcall SetZOrderPosition(int Position);
void __fastcall WriteIsControl(Classes::TWriter* Writer);
MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMNCLButtonDown(Messages::TWMNCHitMessage &Message);
MESSAGE void __fastcall WMRButtonDown(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMMButtonDown(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMRButtonDblClk(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMMButtonDblClk(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMMouseMove(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMRButtonUp(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMMButtonUp(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMCancelMode(Messages::TWMNoParams &Message);
MESSAGE void __fastcall CMVisibleChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMParentFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMParentColorChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMParentShowHintChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMHitTest(Messages::TWMNCHitTest &Message);
MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
MESSAGE void __fastcall CMDesignHitTest(Messages::TWMMouse &Message);
protected:
virtual void __fastcall ChangeScale(int M, int D);
virtual void __fastcall Click(void);
virtual void __fastcall DblClick(void);
virtual void __fastcall DefaultHandler(void *Message);
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
virtual void __fastcall DragCa